package entities;

import services.impl.StandardOPs;
import java.util.List;
import java.util.LinkedList;
import java.util.ArrayList;
import java.util.Arrays;
import java.time.LocalDate;
import java.io.Serializable;
import java.lang.reflect.Method;

public class WorkoutSchedule implements Serializable {
	
	/* all primary attributes */
	private String ScheduleId;
	private LocalDate StartTime;
	private LocalDate EndTime;
	
	/* all references */
	private List<WorkoutSession> ScheduleToSession = new LinkedList<WorkoutSession>(); 
	
	/* all get and set functions */
	public String getScheduleId() {
		return ScheduleId;
	}	
	
	public void setScheduleId(String scheduleid) {
		this.ScheduleId = scheduleid;
	}
	public LocalDate getStartTime() {
		return StartTime;
	}	
	
	public void setStartTime(LocalDate starttime) {
		this.StartTime = starttime;
	}
	public LocalDate getEndTime() {
		return EndTime;
	}	
	
	public void setEndTime(LocalDate endtime) {
		this.EndTime = endtime;
	}
	
	/* all functions for reference*/
	public List<WorkoutSession> getScheduleToSession() {
		return ScheduleToSession;
	}	
	
	public void addScheduleToSession(WorkoutSession workoutsession) {
		this.ScheduleToSession.add(workoutsession);
	}
	
	public void deleteScheduleToSession(WorkoutSession workoutsession) {
		this.ScheduleToSession.remove(workoutsession);
	}
	


}
